package recallin.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
/**
 * Handles all SQLite querys and database
 * @author philipmasek
 *
 */
public class DatabaseUtility extends SQLiteOpenHelper {
	
	private static String DB_PATH = ZipUtil.getDefaultFolderPath()+"SWE_str.db";
	private static SQLiteDatabase database = SQLiteDatabase.openDatabase(
			ZipUtil.getDefaultFolderPath() + "SWE_info.db", null,
			SQLiteDatabase.OPEN_READWRITE);;
	
	public static SQLiteDatabase getDatabase(){
		return database;
	}
	
	public DatabaseUtility(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		// TODO Auto-generated method stub

	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub

	}
	

}
